﻿#ifndef CMDTBCHANGECOLUMNNAME_H
#define CMDTBCHANGECOLUMNNAME_H
#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    class CmdTbChangeColumnName : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdTbChangeColumnName();
        ~CmdTbChangeColumnName();

        bool execute() override;
        void undo() override;
        void redo() override;
        void setWindowId(int windowId) { m_windowId = windowId; }
        void setNewName(QString newName) { m_newName = newName; }
        void setIndex(int index) { m_index = index; }

    private:
        int m_windowId;
        int m_index;
        QString m_newName;

    };
}

#endif // !CMDTBCHANGECOLUMNNAME_H



